package com.example.mangroves.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.math.BigDecimal;
import java.util.Date;

@TableName("geo_details")
public class GeoDetails {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("geo_info_id")
    private Integer geoInfoId;

    @TableField("type_id")
    private Integer typeId;

    @TableField("name")
    private String name;

    @TableField("value")
    private String value; // 修改类型为 String

    @TableField("units")
    private String units;

    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    public GeoDetails() {
    }

    public GeoDetails(Integer id, Integer geoInfoId, Integer typeId, String name, String value, String units, Date createTime, Date updateTime) {
        this.id = id;
        this.geoInfoId = geoInfoId;
        this.typeId = typeId;
        this.name = name;
        this.value = value;
        this.units = units;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return geoInfoId
     */
    public Integer getGeoInfoId() {
        return geoInfoId;
    }

    /**
     * 设置
     * @param geoInfoId
     */
    public void setGeoInfoId(Integer geoInfoId) {
        this.geoInfoId = geoInfoId;
    }

    /**
     * 获取
     * @return typeId
     */
    public Integer getTypeId() {
        return typeId;
    }

    /**
     * 设置
     * @param typeId
     */
    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return value
     */
    public String getValue() {
        return value;
    }

    /**
     * 设置
     * @param value
     */
    public void setValue(String value) {
        this.value = value;
    }

    /**
     * 获取
     * @return units
     */
    public String getUnits() {
        return units;
    }

    /**
     * 设置
     * @param units
     */
    public void setUnits(String units) {
        this.units = units;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "GeoDetails{id = " + id + ", geoInfoId = " + geoInfoId + ", typeId = " + typeId + ", name = " + name + ", value = " + value + ", units = " + units + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
